#include<cstdio>
#include<algorithm>
#define openfile(s) freopen(s".in","s",stdin);freopen(s".out","w",stdout)
using namespace std;
const int N=1e3+1;
int n,m,q;
void work()
{
	scanf("%d%d%d",&n,&m,&q);
	for(int i=1;i<=q;i++)
	{
		printf("YES\n");
	}
	return;
}
int main()
{
	freopen("data.txt","r",stdin);
	openfile("shu");
	work();
	return 0;
}
